import click
from app.monitor_doris.script.monitor_doris_click import MonitorDorisClick


@click.group()
def monitor_doris():
    pass


@monitor_doris.command("monitor_doris_http_url_sync_from_excel")
@click.option('--file_path', type=str, help="excel文件路径")
def monitor_doris_http_url_sync_from_excel(file_path):
    """
    同步物理服务的信息到数据库
    python manage.py monitor_doris_http_url_sync_from_excel --file_path 物理服务梳理.xlsx
    """
    monitor_doris_click = MonitorDorisClick()
    monitor_doris_click.url_info_sync_from_excel(file_path)

